package org.zhouhe.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ReportIndustry entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "report_industry", catalog = "zpd0t1_db")
public class ReportIndustry implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = -1153231157214196211L;
	private Integer reportIndustryId;
	private Report report;
	private Industry industry;
	private Integer main;

	// Constructors

	/** default constructor */
	public ReportIndustry() {
	}

	/** full constructor */
	public ReportIndustry(Report report, Industry industry, Integer main) {
		this.report = report;
		this.industry = industry;
		this.main = main;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "report_industry_id", unique = true, nullable = false)
	public Integer getReportIndustryId() {
		return this.reportIndustryId;
	}

	public void setReportIndustryId(Integer reportIndustryId) {
		this.reportIndustryId = reportIndustryId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "report_id")
	public Report getReport() {
		return this.report;
	}

	public void setReport(Report report) {
		this.report = report;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Industry_id")
	public Industry getIndustry() {
		return this.industry;
	}

	public void setIndustry(Industry industry) {
		this.industry = industry;
	}

	@Column(name = "main")
	public Integer getMain() {
		return this.main;
	}

	public void setMain(Integer main) {
		this.main = main;
	}

}